/*
 * Created on Dec 14, 2009
 *
 * author : Bruno Dumas 
 * DIUF - Fribourg University
 */
package it.unina.lab.modality;

import it.unina.lab.managers.InteractionManager;

import java.util.ArrayList;
import java.util.List;

import diuf.diva.hephaistk.fusion.model.ModalityEvent;
import diuf.diva.hephaistk.fusion.model.TriggerHL;

public class ModalityComponent{

	private InteractionManager IM;
	private String name = null;
	private List<TriggerHL> triggers = null; //trigger lanciabili

	
	
	public ModalityComponent(String modality, InteractionManager inter){
		this.name = modality;
		this.triggers = new ArrayList<TriggerHL>();
		this.IM = inter;
	}
	
	

	
	
	public List<TriggerHL> getTriggers() {
		return triggers;
	}




	public void setTriggers(List<TriggerHL> triggers) {
		this.triggers = triggers;
	}

	
	

	public void addTrigger(TriggerHL trig){
		this.triggers.add(trig);
	}




	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
	public String toString(){
		return "Modality: " + name 
		       + "\n Triggers: \n" + triggers;
	}

	
	
}
